package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("t_role")
@Schema(description = "角色")
public class TRole {
    @Schema(description = "角色id")
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long roleid;

    @Schema(description = "角色名称")
    private String rolename;

    @Schema(description = "角色关键字")
    private String keyword;

    @Schema(description = "角色描述")
    private String description;

    @Schema(description = "角色状态 0禁用 1启用")
    private Integer status;
}